package OOday02;

public class ExtendsDemo {
    public static void main(String[] args) {
        Student LJ=new Student("刘界",21,"成都","jsd2407","001");
        LJ.say();
        LJ.eat();
        LJ.sleep();
        LJ.study();
        Teacher WKJ=new Teacher("王克晶",40,"北京",16000);
        WKJ.say();
        WKJ.eat();
        WKJ.sleep();
        WKJ.teach();
        Doctor tom=new Doctor("tom",42,"成都","骨科");
        tom.say();
        tom.eat();
        tom.sleep();
        tom.cut();
    }
}